interface ResponseData {
    code: number;
    message: string;
    ok: boolean;
}

export interface RoleData{
    id?: number|string;
    createTime: string;
    updateTime: string;
    roleName: string;
    remark: string;
}
export type Records = RoleData[]
export interface RoleResponseData extends ResponseData{
    data: {
        records:Records,
        total: number;
        size: number;
        current: number;
        orders: any[];
        optimizeCountSql: boolean;
        hitCount: boolean;
        countId?: any;
        maxLimit?: any;
        searchCount: boolean;
        pages: number;
    }
}
// 权限数据类型
export interface MunuData {
    id: number;
    createTime: string;
    updateTime: string;
    pid: number;
    name: string;
    code: string;
    toCode?: string;
    type: number;
    status?: any;
    level: number;
    children?: MenuList;
    select: boolean;
}
export type MenuList = MunuData[]
export interface MenuResponseData extends ResponseData{
    data: MenuList;
}

